﻿using Basic.FlowCollect;
using Basic.FlowRemoteModel.NodeFormData.Model;
using Basic.FlowService.Interface;

namespace Basic.FlowService.lmpl
{
    internal class NodeFormDataRelationService : INodeFormDataRelationService
    {
        private readonly INodeFormDataRelationCollect _Service;

        public NodeFormDataRelationService ( INodeFormDataRelationCollect service )
        {
            this._Service = service;
        }
        public DataRelation[] Gets ( long nodeId )
        {
            return this._Service.Gets(nodeId);
        }
        public void Sync ( long flowId, long nodeId, DataRelation[] adds )
        {
            this._Service.Sync(flowId, nodeId, adds);
        }
    }
}
